package com.zhuoyue.biz.core.api.dto.rep;

import lombok.Data;
import org.apache.commons.collections.CollectionUtils;

import java.util.Collections;
import java.util.List;

/**
 * 产品信息
 *
 * @author wjming
 */
@Data
public class ProdInformation {
    /**
     * 产品功能
     */
    private List<String> prodFunction;

    /**
     * 获取产品对应信息
     *
     * @param functionList
     * @return
     */
    public ProdInformation getInformation(List<String> functionList) {
        if (CollectionUtils.isEmpty(functionList)) {
            this.prodFunction = Collections.emptyList();
        } else {
            this.prodFunction = functionList;
        }
        return this;
    }
}
